<template>
  <div class="app">
    <div class="left">
      <menu-view/>
    </div>
    <div class="right">
      <div class="top">
        <top-view/>
      </div>
      <div class="bottom">
        <router-view/>
      </div>
    </div>
  </div>
</template>

<script setup lang="ts">
import menuView from '@/components/menu.vue'
import topView from '@/components/top.vue'
</script>

<style scoped lang="scss">
.app{
  //border: 1px solid red;
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  display: flex;
  width: 100%;
  height: 100vh;

  .left{
    //border: 1px solid red;
    width: 180px;
    height: 100%;
    box-sizing: border-box;
  }

  .right{
    box-sizing: border-box;
    //border: 1px solid red;
    width: calc(100% - 180px);
    height: 100%;
    display: flex;
    flex-direction: column;

    .top{
      box-sizing: border-box;
      //border: 1px solid red;
      width: 100%;
      height: 60px;
    }

    .bottom{
      box-sizing: border-box;
      //border: 1px solid red;
      width: 100%;
      height: calc(100% - 60px);
    }
  }
}
</style>